﻿<%@ Page Title="医疗机构月份采购计划分析 " Language="C#" MasterPageFile="~/Master/MasterPage_New.master" AutoEventWireup="true" CodeBehind="HospitalPurchasePlan.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.Statistics.HospitalPurchasePlan" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <%@ register src="~/Common/AreaControls.ascx" tagname="AreaControl" tagprefix="uc3" %>
    <style type="text/css">
        .style1
        {
            height: 13px;
        }
        .style2
        {
            height: 13px;
            width: 109px;
        }
        .style3
        {
            width: 109px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="search">
  <div class="search_item">
  <table>
  <tr>
  <td>
    <table>
      <tr>
        <th> 地 区： </th>
        <td colspan="3"><uc3:AreaControl ID="AreaControl1" runat="server" /></td>
        <th class="style1"> 计划月份： </th>
        <td class="style1"><asp:TextBox ID="txtPlanTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM',readOnly:true})"></asp:TextBox></td>
        <th> 医院名称： </th>
        <td align="left"><asp:TextBox ID="txtHospitalName" runat="server"></asp:TextBox></td>
      </tr>
      <tr>
        <th> 流水号： </th>
        <td align="left"><asp:TextBox ID="txtProcureCatalogID" runat="server"></asp:TextBox></td>
        <th> 通用名： </th>
        <td align="left"><asp:TextBox ID="txtProductName" runat="server"></asp:TextBox></td>
        <th> 剂型： </th>
        <td align="left"><asp:TextBox ID="txtMedicineModel" runat="server"></asp:TextBox></td>
        <th> 包装： </th>
        <td align="left"><asp:TextBox ID="txtPack" runat="server"></asp:TextBox></td>
      </tr>
      <tr>
        <th> 医院类型： </th>
        <td><asp:DropDownList ID="ddlHosType" runat="server">
          <asp:ListItem Value="0">所有医疗机构</asp:ListItem>
          <asp:ListItem Value="1">二三级医疗机构</asp:ListItem>
          <asp:ListItem Value="2">基层医疗机构</asp:ListItem>
          <asp:ListItem Value="3">社区医疗机构</asp:ListItem>
          <asp:ListItem Value="4">乡镇医疗机构</asp:ListItem>
        </asp:DropDownList></td>
        <th> 是否政府办： </th>
        <td><asp:DropDownList ID="ddlIsGov" runat="server">
          <asp:ListItem Value="">全部基层医疗机构</asp:ListItem>
          <asp:ListItem Value="0">非政府办基层医疗机构</asp:ListItem>
          <asp:ListItem Value="1">政府办基层医疗机构</asp:ListItem>
        </asp:DropDownList></td>
        <th> 排序字段： </th>
        <td align="left"><asp:DropDownList runat="server" ID="ddlSortFields">
          <asp:ListItem Value="ProductName" Text="通用名"></asp:ListItem>
          <asp:ListItem Value="WareCount" Text="实际采购数量"></asp:ListItem>
          <asp:ListItem Value="planCount" Text="计划采购数量"></asp:ListItem>
          <asp:ListItem Value="OutNumber" Text="计划与实际差额"></asp:ListItem>
        </asp:DropDownList></td>
        <th> 排序方式： </th>
        <td align="left"><asp:DropDownList runat="server" ID="ddlSort">
          <asp:ListItem Value="DESC" Text="降序"></asp:ListItem>
          <asp:ListItem Value="ASC" Text="升序"></asp:ListItem>
        </asp:DropDownList></td>
       
      </tr>
      <tr>
      <th >药品分类：</th>
      <td align="left"> 
      <asp:DropDownList runat="server" ID="dlpsort"></asp:DropDownList>
      </td>
       <%--<td <hz:HzButton ID="btnQuery" runat="server" Text="查  询" OnClick="btnQuery_Click" CssClass="btn" />
        </td>--%>
      </tr>
    </table>
    </td>
    <td>
    <hz:HzButton ID="btnQuery" runat="server" Text="查  询" OnClick="btnQuery_Click" CssClass="btn" />
    </td>
    </tr>
    </table>
  </div>
</div>
<asp:GridView ID="gvwPSLInfo" runat="server" AutoGenerateColumns="False" CssClass="mainlist" AllowSorting="True" EmptyDataText="暂无符合条件的数据！" OnRowCommand="gvwPSLInfo_RowCommand" >
  <Columns>
  <asp:TemplateField HeaderText="序号">
    <ItemTemplate> <%#Container.DataItemIndex + 1 + AspNetPager_CompanyPS.PageSize * (AspNetPager_CompanyPS.CurrentPageIndex - 1)%></ItemTemplate>
    <HeaderStyle Width="30px" />
  </asp:TemplateField>
  <asp:BoundField DataField="xuhao" HeaderText="序号" ReadOnly="true" Visible="false" />
  <asp:BoundField DataField="ProcureCatalogID" HeaderText="流水号" ReadOnly="true" />
  <asp:BoundField DataField="ProductName" HeaderText="通用名" ReadOnly="true" />
  <asp:BoundField DataField="MedicineModelName" HeaderText="剂型" ReadOnly="true" />
  <asp:BoundField DataField="Pack" HeaderText="包装" />
  <asp:BoundField DataField="ProcurePrice" HeaderText="供应价格" />
  <asp:BoundField DataField="sort" HeaderText="药品分类" NullDisplayText="无" />
  <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
  <asp:BoundField DataField="WareCount" HeaderText="实际采购数量" ReadOnly="true" />
  <asp:BoundField DataField="planCount" HeaderText="计划采购数量" ReadOnly="true" />
  <asp:BoundField DataField="OutNumber" HeaderText="计划采购与实际采购差额" ReadOnly="true" />
  <asp:TemplateField HeaderText ="明细">
    <ItemTemplate>
      <hz:HzLinkButton ID="lbnCom" runat="server" CausesValidation="True" CommandName="lbnCom" CommandArgument='<%#Eval("ProcureCatalogID") %>' Text="明细" />
    </ItemTemplate>
  </asp:TemplateField>
  </Columns>
</asp:GridView>
<div class="page"> <span style="width: 30%; float: left; text-align: left">
  <hz:HzButton ID="btnExcel1" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" />
  </span> <span style="width: 70%; text-align: right; float: right">
  <webdiyer:AspNetPager ID="AspNetPager_CompanyPS" runat="server" AlwaysShow="true"
                OnPageChanged="AspNetPager_CompanyPS_PageChanged"> </webdiyer:AspNetPager>
</span> </div>
<br />
<div class="listip">
  <ul>
    <li>说明:<span>页面初始显示当前月的上一个月的医院填报预采购计划。</span> </li>
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>实际采购数量：指医疗机构的实际入库数量。</span></li>
    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>计划采购与实际采购差额=计划采购数量-实际采购数量。</span></li>
  </ul>
</div>
</asp:Content>
